package com.yunji.news.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunji.news.entity.EnrollmentApplication;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 报名申请Mapper
 *
 * @author yunji
 * @since 2024-11-26
 */
@Mapper
public interface EnrollmentApplicationMapper extends BaseMapper<EnrollmentApplication> {

    /**
     * 分页查询报名申请
     */
    IPage<EnrollmentApplication> selectApplicationPage(
            Page<EnrollmentApplication> page,
            @Param("schoolId") Long schoolId,
            @Param("majorId") Long majorId,
            @Param("status") String status,
            @Param("keyword") String keyword
    );
}